﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MDP.TestSendMessage
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("请输入接收人手机号或RTX：");
            string target = Console.ReadLine();
            while (!string.IsNullOrEmpty(target))
            {
                string msg = string.Empty;
                MDP.SendMessage.ISendMessage send = new MDP.SendMessage.SendSMSMessage();
                //string msg = send.Send("MDPMSG", "15811017762", "title-test", "content-test", DateTime.Now.ToString(), "");
                //Console.WriteLine("SendSMSMessage 返回消息：{0}", msg);

                send = new MDP.SendMessage.SendRTXMessage();
                msg = send.Send("MDPMSG", target, "title-test", "主数据发送测试消息", DateTime.Now.ToString(), "");
                Console.WriteLine("SendRTXMessage 返回消息：{0}", msg);

                send = new MDP.SendMessage.SendRTXNotify();
                msg = send.Send("MDPMSG", target, "title-test", "主数据发送测试通知", DateTime.Now.ToString(), "");
                Console.WriteLine("SendRTXNotify 返回消息：{0}", msg);

                Console.Write("请输入接收人手机号或RTX：");
                target = Console.ReadLine();
            }
        }
    }
}
